package com.example.yang.ministy.com.example.yang.WonderMomentFragment;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListView;

import com.example.yang.ministy.R;
import com.example.yang.ministy.com.yang.example.adapter.WonderAdapter;

/**
 * Created by Yang on 2016/9/22.
 */
public class WonderMomentFragment_la extends Fragment {
    private View layoutView;
    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
         layoutView=inflater.inflate(R.layout.wondermomentfragment,null);
        return layoutView;
    }
    @Override
    public void onActivityCreated(@Nullable Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);
        if (layoutView==null)return;
        ListView listView=(ListView)layoutView.findViewById(R.id.lv);
        listView.setAdapter(new WonderAdapter());
    }
}
